package com.zking.service.impl.lj;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zking.dao.domain.lj.Advertisement;
import com.zking.dao.mapper.lj.AdvertisementMapper;
import com.zking.service.lj.AdvertisementService;
@Service
public class AdvertisementServicelmpl implements AdvertisementService{
	@Autowired
	AdvertisementMapper AdvertisementMapper;
	
	@Override
	public int addADERT(Advertisement advertisement) {
		int i = AdvertisementMapper.addADERT(advertisement);
		return i;
	}

	@Override
	public List<Advertisement> getadvertisements() {
		List<Advertisement> list = AdvertisementMapper.getadvertisements();
		return list;
	}

	@Override
	public int deleteadv(Integer id) {
		int i = AdvertisementMapper.deleteadv(id);
		return i;
	}
	
}
